package com.cyj.service.shop;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyj.dto.SearchDto;
import com.cyj.pojo.Shop;
import com.cyj.utils.response.JsonObject;

public interface ShopService extends IService<Shop> {


    JsonObject<Shop> queryShopList(SearchDto searchDto);

    /**
     * 添加
     *
     * @param shop
     * @return int
     */
    int add(Shop shop);

    /**
     * 删除
     *
     * @param id 主键
     * @return int
     */
    int delete(Long id);

    /**
     * 修改
     *
     * @param shop
     * @return int
     */
    int updateData(Shop shop);

    /**
     * id查询数据
     *
     * @param id id
     * @return Shop
     */
    Shop findById(Long id);
}
